{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "亮度充足文件总数: 16\n",
      "亮度充足图片文件名 ['C:/Users/YeZixun/Pictures/hight_pic\\\\0001.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0002.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0003.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0004.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0009.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0010.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0011.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0098.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0144.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0145.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0146.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0147.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0148.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0149.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0150.jpg', 'C:/Users/YeZixun/Pictures/hight_pic\\\\0151.jpg']\n",
      "亮度充足图片文件名 ['0001', '0002', '0003', '0004', '0009', '0010', '0011', '0098', '0144', '0145', '0146', '0147', '0148', '0149', '0150', '0151']\n"
     ]
    }
   ],
   "source": [
    "import glob, os, shutil\n",
    "from os import getcwd\n",
    "from os import listdir\n",
    "import cv2\n",
    "import numpy as np\n",
    "higpic_files_num=len(os.listdir('C:/Users/YeZixun/Pictures/hight_pic'))\n",
    "print(\"亮度充足文件总数:\",higpic_files_num)\n",
    "higpic_files = glob.glob(os.path.join('C:/Users/YeZixun/Pictures/hight_pic/*.jpg'))\n",
    "print (\"亮度充足图片文件名\",higpic_files)\n",
    "higfiles_name=[]\n",
    "for filepath in higpic_files:\n",
    "    higfiles_name.append(filepath.split('.')[0].split('\\\\')[1])\n",
    "print (\"亮度充足图片文件名\",higfiles_name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "戴口罩文件总数 514\n",
      "不戴口罩文件总数 651\n"
     ]
    }
   ],
   "source": [
    "have_mask_files_num=len(os.listdir('D:/Mask-detect/mask_dataset/label_mask'))\n",
    "no_mask_files_num=len(os.listdir('D:/Mask-detect/mask_dataset/label_nomask'))\n",
    "print (\"戴口罩文件总数\",have_mask_files_num)\n",
    "print (\"不戴口罩文件总数\",no_mask_files_num)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "戴口罩文件总数 ['D:/Mask-detect/mask_dataset/label_mask\\\\0000.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0001.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0002.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0003.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0004.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0005.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0006.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0007.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0008.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0009.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0010.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0011.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0012.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0013.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0014.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0015.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0016.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0017.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0018.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0019.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0020.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0021.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0022.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0023.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0024.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0025.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0026.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0027.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0028.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0029.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0030.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0031.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0032.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0033.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0034.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0035.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0036.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0037.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0038.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0039.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0040.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0041.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0042.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0043.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0044.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0045.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0046.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0047.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0048.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0049.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0050.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0051.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0052.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0053.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0054.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0055.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0056.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0057.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0058.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0059.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0060.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0061.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0062.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0063.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0064.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0065.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0066.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0067.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0068.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0069.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0070.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0071.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0072.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0073.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0074.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0075.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0076.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0077.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0078.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0079.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0080.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0081.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0082.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0083.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0084.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0085.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0086.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0087.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0088.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0089.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0090.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0091.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0092.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0093.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0094.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0095.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0096.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0097.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0098.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0099.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0100.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0101.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0102.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0103.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0104.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0105.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0106.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0107.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0108.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0109.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0110.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0111.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0112.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0113.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0114.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0115.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0116.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0117.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0118.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0119.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0120.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0121.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0122.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0123.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0124.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0125.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0126.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0127.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0128.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0129.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0130.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0131.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0132.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0133.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0134.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0135.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0136.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0137.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0138.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0139.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0140.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0141.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0142.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0143.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0144.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0145.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0146.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0147.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0148.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0149.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0150.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0151.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0152.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0153.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0154.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0155.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0156.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0157.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0158.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0159.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0160.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0161.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0162.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0163.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0164.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0165.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0166.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0167.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0168.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0169.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0170.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0171.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0172.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0173.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0174.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0175.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0176.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0177.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0178.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0179.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0180.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0181.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0182.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0183.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0184.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0185.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0186.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0187.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0188.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0189.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0190.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0191.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0192.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0193.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0194.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0195.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0196.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0197.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0198.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0199.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0200.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0201.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0202.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0203.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0204.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0205.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0206.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0207.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0208.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0209.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0210.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0211.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0212.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0213.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0214.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0215.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0216.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0217.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0218.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0219.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0220.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0221.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0222.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0223.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0224.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0225.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0226.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0227.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0228.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0229.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0230.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0231.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0232.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0233.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0234.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0235.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0236.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0237.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0238.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0239.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0240.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0241.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0242.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0243.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0244.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0245.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0246.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0247.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0248.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0249.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0250.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0251.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0252.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0253.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0254.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0255.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0256.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0257.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0258.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0259.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0260.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0261.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0262.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0263.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0264.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0265.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0266.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0267.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0268.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0269.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0270.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0271.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0272.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0273.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0274.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0275.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0276.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0277.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0278.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0279.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0280.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0281.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0282.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0283.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0284.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0285.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0286.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0287.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0288.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0289.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0290.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0291.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0292.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0293.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0294.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0295.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0296.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0297.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0298.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0299.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0300.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0301.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0302.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0303.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0304.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0305.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0306.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0307.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0308.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0309.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0310.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0311.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0312.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0313.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0314.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0315.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0316.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0317.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0318.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0319.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0320.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0321.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0322.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0323.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0324.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0325.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0326.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0327.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0328.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0329.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0330.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0331.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0332.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0333.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0334.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0335.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0336.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0337.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0338.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0339.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0340.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0341.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0342.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0343.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0344.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0345.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0346.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0347.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0348.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0349.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0350.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0351.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0352.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0353.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0354.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0355.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0356.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0357.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0358.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0359.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0360.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0361.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0362.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0363.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0364.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0365.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0366.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0367.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0368.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0369.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0370.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0371.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0372.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0373.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0374.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0375.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0376.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0377.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0378.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0379.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0380.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0381.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0382.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0383.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0384.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0385.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0386.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0387.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0388.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0389.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0390.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0391.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0392.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0393.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0394.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0395.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0396.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0397.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0398.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0399.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0400.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0401.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0402.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0403.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0404.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0405.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0406.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0407.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0408.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0409.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0410.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0411.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0412.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0413.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0414.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0415.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0416.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0417.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0418.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0419.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0420.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0421.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0422.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0423.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0424.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0425.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0426.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0427.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0428.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0429.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0430.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0431.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0432.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0433.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0434.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0435.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0436.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0437.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0438.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0439.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0440.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0441.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0442.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0443.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0444.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0445.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0446.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0447.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0448.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0449.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0450.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0451.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0452.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0453.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0454.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0455.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0456.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0457.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0458.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0459.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0460.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0461.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0462.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0463.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0464.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0465.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0466.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0467.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0468.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0469.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0470.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0471.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0472.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0473.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0474.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0475.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0476.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0477.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0478.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0479.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0480.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0481.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0482.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0483.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0484.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0485.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0486.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0487.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0488.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0489.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0490.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0491.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0492.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0493.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0494.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0495.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0496.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0497.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0498.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0499.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0500.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0501.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0502.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0503.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0504.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0505.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0506.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0507.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0508.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0509.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0510.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0511.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0512.xml', 'D:/Mask-detect/mask_dataset/label_mask\\\\0513.xml']\n",
      "不口罩文件总数 ['D:/Mask-detect/mask_dataset/label_nomask\\\\0000.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0001.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0002.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0003.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0004.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0005.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0006.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0007.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0008.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0009.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0010.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0011.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0012.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0013.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0014.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0015.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0016.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0017.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0018.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0019.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0020.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0021.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0022.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0023.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0024.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0025.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0026.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0027.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0028.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0029.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0030.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0031.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0032.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0033.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0034.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0035.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0036.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0037.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0038.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0039.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0040.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0041.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0042.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0043.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0044.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0045.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0046.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0047.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0048.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0049.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0050.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0051.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0052.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0053.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0054.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0055.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0056.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0057.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0058.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0059.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0060.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0061.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0062.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0063.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0064.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0065.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0066.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0067.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0068.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0069.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0070.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0071.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0072.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0073.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0074.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0075.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0076.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0077.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0078.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0079.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0080.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0081.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0082.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0083.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0084.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0085.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0086.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0087.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0088.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0089.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0090.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0091.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0092.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0093.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0094.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0095.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0096.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0097.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0098.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0099.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0100.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0101.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0102.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0103.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0104.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0105.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0106.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0107.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0108.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0109.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0110.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0111.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0112.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0113.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0114.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0115.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0116.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0117.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0118.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0119.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0120.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0121.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0122.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0123.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0124.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0125.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0126.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0127.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0128.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0129.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0130.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0131.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0132.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0133.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0134.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0135.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0136.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0137.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0138.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0139.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0140.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0141.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0142.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0143.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0144.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0145.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0146.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0147.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0148.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0149.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0150.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0151.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0152.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0153.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0154.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0155.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0156.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0157.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0158.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0159.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0160.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0161.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0162.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0163.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0164.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0165.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0166.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0167.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0168.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0169.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0170.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0171.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0172.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0173.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0174.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0175.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0176.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0177.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0178.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0179.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0180.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0181.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0182.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0183.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0184.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0185.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0186.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0187.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0188.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0189.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0190.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0191.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0192.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0193.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0194.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0195.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0196.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0197.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0198.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0199.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0200.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0201.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0202.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0203.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0204.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0205.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0206.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0207.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0208.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0209.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0210.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0211.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0212.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0213.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0214.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0215.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0216.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0217.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0218.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0219.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0220.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0221.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0222.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0223.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0224.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0225.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0226.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0227.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0228.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0229.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0230.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0231.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0232.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0233.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0234.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0235.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0236.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0237.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0238.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0239.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0240.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0241.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0242.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0243.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0244.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0245.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0246.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0247.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0248.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0249.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0250.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0251.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0252.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0253.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0254.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0255.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0256.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0257.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0258.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0259.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0260.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0261.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0262.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0263.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0264.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0265.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0266.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0267.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0268.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0269.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0270.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0271.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0272.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0273.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0274.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0275.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0276.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0277.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0278.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0279.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0280.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0281.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0282.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0283.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0284.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0285.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0286.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0287.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0288.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0289.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0290.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0291.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0292.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0293.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0294.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0295.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0296.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0297.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0298.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0299.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0300.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0301.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0302.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0303.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0304.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0305.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0306.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0307.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0308.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0309.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0310.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0311.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0312.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0313.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0314.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0315.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0316.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0317.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0318.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0319.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0320.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0321.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0322.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0323.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0324.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0325.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0326.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0327.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0328.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0329.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0330.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0331.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0332.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0333.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0334.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0335.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0336.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0337.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0338.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0339.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0340.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0341.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0342.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0343.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0344.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0345.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0346.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0347.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0348.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0349.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0350.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0351.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0352.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0353.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0354.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0355.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0356.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0357.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0358.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0359.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0360.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0361.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0362.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0363.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0364.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0365.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0366.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0367.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0368.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0369.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0370.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0371.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0372.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0373.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0374.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0375.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0376.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0377.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0378.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0379.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0380.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0381.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0382.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0383.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0384.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0385.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0386.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0387.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0388.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0389.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0390.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0391.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0392.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0393.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0394.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0395.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0396.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0397.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0398.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0399.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0400.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0401.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0402.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0403.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0404.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0405.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0406.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0407.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0408.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0409.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0410.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0411.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0412.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0413.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0414.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0415.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0416.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0417.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0418.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0419.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0420.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0421.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0422.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0423.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0424.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0425.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0426.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0427.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0428.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0429.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0430.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0431.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0432.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0433.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0434.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0435.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0436.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0437.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0438.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0439.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0440.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0441.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0442.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0443.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0444.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0445.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0446.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0447.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0448.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0449.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0450.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0451.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0452.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0453.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0454.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0455.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0456.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0457.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0458.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0459.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0460.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0461.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0462.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0463.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0464.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0465.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0466.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0467.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0468.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0469.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0470.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0471.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0472.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0473.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0474.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0475.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0476.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0477.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0478.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0479.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0480.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0481.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0482.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0483.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0484.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0485.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0486.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0487.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0488.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0489.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0490.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0491.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0492.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0493.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0494.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0495.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0496.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0497.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0498.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0499.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0500.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0501.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0502.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0503.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0504.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0505.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0506.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0507.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0508.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0509.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0510.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0511.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0512.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0513.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0514.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0515.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0516.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0517.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0518.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0519.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0520.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0521.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0522.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0523.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0524.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0525.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0526.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0527.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0528.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0529.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0530.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0531.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0532.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0533.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0534.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0535.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0536.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0537.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0538.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0539.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0540.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0541.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0542.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0543.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0544.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0545.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0546.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0547.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0548.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0549.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0550.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0551.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0552.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0553.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0554.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0555.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0556.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0557.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0558.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0559.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0560.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0561.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0562.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0563.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0564.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0565.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0566.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0567.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0568.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0569.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0570.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0571.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0572.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0573.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0574.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0575.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0576.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0577.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0578.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0579.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0580.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0581.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0582.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0583.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0584.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0585.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0586.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0587.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0588.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0589.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0590.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0591.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0592.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0593.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0594.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0595.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0596.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0597.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0598.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0599.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0600.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0601.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0602.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0603.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0604.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0605.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0606.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0607.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0608.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0609.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0610.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0611.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0612.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0613.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0614.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0615.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0616.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0617.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0618.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0619.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0620.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0621.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0622.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0623.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0624.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0625.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0626.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0627.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0628.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0629.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0630.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0631.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0632.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0633.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0634.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0635.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0636.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0637.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0638.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0639.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0640.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0641.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0642.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0643.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0644.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0645.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0646.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0647.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0648.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0649.xml', 'D:/Mask-detect/mask_dataset/label_nomask\\\\0650.xml']\n"
     ]
    }
   ],
   "source": [
    "have_mask_files = glob.glob(os.path.join('D:/Mask-detect/mask_dataset/label_mask/*.xml'))\n",
    "no_mask_files = glob.glob(os.path.join('D:/Mask-detect/mask_dataset/label_nomask/*.xml'))\n",
    "print (\"戴口罩文件总数\",have_mask_files)\n",
    "print (\"不口罩文件总数\",no_mask_files)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "文件名 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650]\n"
     ]
    }
   ],
   "source": [
    "no_mask_name=[]\n",
    "for filepath in no_mask_files:\n",
    "    no_mask_name.append(int(filepath.split('.')[0].split('\\\\')[1]))\n",
    "print (\"文件名\",no_mask_name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [],
   "source": [
    "#修改文件名并转移\n",
    "for filepath in no_mask_files:\n",
    "    path_new='D:/Mask-detect/mask_dataset/label_mask/'+str(no_mask_files.index(filepath)+have_mask_files_num)+'.xml'\n",
    "    shutil.move(filepath, path_new)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "def contrast_demo(img1, c, b):  # 亮度就是每个像素所有通道都加上b\n",
    "    rows, cols, chunnel = img1.shape\n",
    "    blank = np.zeros([rows, cols, chunnel], img1.dtype)  # np.zeros(img1.shape, dtype=uint8)\n",
    "    dst = cv2.addWeighted(img1, c, blank, 1-c, b)\n",
    "    return dst"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0001.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0002.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0003.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0004.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0009.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0010.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0011.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0098.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0144.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0145.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0146.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0147.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0148.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0149.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0150.jpg\n",
      "生成图片 C:/Users/YeZixun/Pictures/low_pic/0151.jpg\n"
     ]
    }
   ],
   "source": [
    "for filepath in higpic_files:\n",
    "    hight_image_path='C:/Users/YeZixun/Pictures/hight_pic/'+higfiles_name[higpic_files.index(filepath)]+'.jpg'\n",
    "    low_image_path='C:/Users/YeZixun/Pictures/low_pic/'+higfiles_name[higpic_files.index(filepath)]+'.jpg'\n",
    "    img_hight = cv2.imread(hight_image_path, cv2.IMREAD_COLOR)\n",
    "    img_low = contrast_demo(img_hight, 0.4, 3)#生成对应的低亮度图片\n",
    "    cv2.imwrite(low_image_path, img_low)\n",
    "    print (\"生成图片\",low_image_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "def rand(a=0, b=1):\n",
    "    return np.random.rand()*(b-a) + a\n",
    "\n",
    "def merge_bboxes(bboxes, cutx, cuty):\n",
    "\n",
    "    merge_bbox = []\n",
    "    for i in range(len(bboxes)):\n",
    "        for box in bboxes[i]:\n",
    "            tmp_box = []\n",
    "            x1,y1,x2,y2 = box[0], box[1], box[2], box[3]\n",
    "\n",
    "            if i == 0:\n",
    "                if y1 > cuty or x1 > cutx:\n",
    "                    continue\n",
    "                if y2 >= cuty and y1 <= cuty:\n",
    "                    y2 = cuty\n",
    "                    if y2-y1 < 5:\n",
    "                        continue\n",
    "                if x2 >= cutx and x1 <= cutx:\n",
    "                    x2 = cutx\n",
    "                    if x2-x1 < 5:\n",
    "                        continue\n",
    "                \n",
    "            if i == 1:\n",
    "                if y2 < cuty or x1 > cutx:\n",
    "                    continue\n",
    "\n",
    "                if y2 >= cuty and y1 <= cuty:\n",
    "                    y1 = cuty\n",
    "                    if y2-y1 < 5:\n",
    "                        continue\n",
    "                \n",
    "                if x2 >= cutx and x1 <= cutx:\n",
    "                    x2 = cutx\n",
    "                    if x2-x1 < 5:\n",
    "                        continue\n",
    "\n",
    "            if i == 2:\n",
    "                if y2 < cuty or x2 < cutx:\n",
    "                    continue\n",
    "\n",
    "                if y2 >= cuty and y1 <= cuty:\n",
    "                    y1 = cuty\n",
    "                    if y2-y1 < 5:\n",
    "                        continue\n",
    "\n",
    "                if x2 >= cutx and x1 <= cutx:\n",
    "                    x1 = cutx\n",
    "                    if x2-x1 < 5:\n",
    "                        continue\n",
    "\n",
    "            if i == 3:\n",
    "                if y1 > cuty or x2 < cutx:\n",
    "                    continue\n",
    "\n",
    "                if y2 >= cuty and y1 <= cuty:\n",
    "                    y2 = cuty\n",
    "                    if y2-y1 < 5:\n",
    "                        continue\n",
    "\n",
    "                if x2 >= cutx and x1 <= cutx:\n",
    "                    x1 = cutx\n",
    "                    if x2-x1 < 5:\n",
    "                        continue\n",
    "\n",
    "            tmp_box.append(x1)\n",
    "            tmp_box.append(y1)\n",
    "            tmp_box.append(x2)\n",
    "            tmp_box.append(y2)\n",
    "            tmp_box.append(box[-1])\n",
    "            merge_bbox.append(tmp_box)\n",
    "    return merge_bbox\n",
    "\n",
    "def get_random_data(annotation_line, input_shape, random=True, hue=.1, sat=1.5, val=1.5, proc_img=True):\n",
    "    '''random preprocessing for real-time data augmentation'''\n",
    "    h, w = input_shape\n",
    "    min_offset_x = 0.4\n",
    "    min_offset_y = 0.4\n",
    "    scale_low = 1-min(min_offset_x,min_offset_y)\n",
    "    scale_high = scale_low+0.2\n",
    "\n",
    "    image_datas = [] \n",
    "    box_datas = []\n",
    "    index = 0\n",
    "\n",
    "    place_x = [0,0,int(w*min_offset_x),int(w*min_offset_x)]\n",
    "    place_y = [0,int(h*min_offset_y),int(w*min_offset_y),0]\n",
    "    for line in annotation_line:\n",
    "        # 每一行进行分割\n",
    "        line_content = line.split()\n",
    "        # 打开图片\n",
    "        image = Image.open(line_content[0])\n",
    "        image = image.convert(\"RGB\") \n",
    "        # 图片的大小\n",
    "        iw, ih = image.size\n",
    "        # 保存框的位置\n",
    "        box = np.array([np.array(list(map(int,box.split(',')))) for box in line_content[1:]])\n",
    "        \n",
    "        # image.save(str(index)+\".jpg\")\n",
    "        # 是否翻转图片\n",
    "        flip = rand()<.5\n",
    "        if flip and len(box)>0:\n",
    "            image = image.transpose(Image.FLIP_LEFT_RIGHT)\n",
    "            box[:, [0,2]] = iw - box[:, [2,0]]\n",
    "\n",
    "        # 对输入进来的图片进行缩放\n",
    "        new_ar = w/h\n",
    "        scale = rand(scale_low, scale_high)\n",
    "        if new_ar < 1:\n",
    "            nh = int(scale*h)\n",
    "            nw = int(nh*new_ar)\n",
    "        else:\n",
    "            nw = int(scale*w)\n",
    "            nh = int(nw/new_ar)\n",
    "        image = image.resize((nw,nh), Image.BICUBIC)\n",
    "\n",
    "        # 进行色域变换\n",
    "        hue = rand(-hue, hue)\n",
    "        sat = rand(1, sat) if rand()<.5 else 1/rand(1, sat)\n",
    "        val = rand(1, val) if rand()<.5 else 1/rand(1, val)\n",
    "        x = rgb_to_hsv(np.array(image)/255.)\n",
    "        x[..., 0] += hue\n",
    "        x[..., 0][x[..., 0]>1] -= 1\n",
    "        x[..., 0][x[..., 0]<0] += 1\n",
    "        x[..., 1] *= sat\n",
    "        x[..., 2] *= val\n",
    "        x[x>1] = 1\n",
    "        x[x<0] = 0\n",
    "        image = hsv_to_rgb(x)\n",
    "\n",
    "        image = Image.fromarray((image*255).astype(np.uint8))\n",
    "        # 将图片进行放置，分别对应四张分割图片的位置\n",
    "        dx = place_x[index]\n",
    "        dy = place_y[index]\n",
    "        new_image = Image.new('RGB', (w,h), (128,128,128))\n",
    "        new_image.paste(image, (dx, dy))\n",
    "        image_data = np.array(new_image)/255\n",
    "\n",
    "        # Image.fromarray((image_data*255).astype(np.uint8)).save(str(index)+\"distort.jpg\")\n",
    "        \n",
    "        index = index + 1\n",
    "        box_data = []\n",
    "        # 对box进行重新处理\n",
    "        if len(box)>0:\n",
    "            np.random.shuffle(box)\n",
    "            box[:, [0,2]] = box[:, [0,2]]*nw/iw + dx\n",
    "            box[:, [1,3]] = box[:, [1,3]]*nh/ih + dy\n",
    "            box[:, 0:2][box[:, 0:2]<0] = 0\n",
    "            box[:, 2][box[:, 2]>w] = w\n",
    "            box[:, 3][box[:, 3]>h] = h\n",
    "            box_w = box[:, 2] - box[:, 0]\n",
    "            box_h = box[:, 3] - box[:, 1]\n",
    "            box = box[np.logical_and(box_w>1, box_h>1)]\n",
    "            box_data = np.zeros((len(box),5))\n",
    "            box_data[:len(box)] = box\n",
    "        \n",
    "        image_datas.append(image_data)\n",
    "        box_datas.append(box_data)\n",
    "\n",
    "        img = Image.fromarray((image_data*255).astype(np.uint8))\n",
    "        for j in range(len(box_data)):\n",
    "            thickness = 3\n",
    "            left, top, right, bottom  = box_data[j][0:4]\n",
    "            draw = ImageDraw.Draw(img)\n",
    "            for i in range(thickness):\n",
    "                draw.rectangle([left + i, top + i, right - i, bottom - i],outline=(255,255,255))\n",
    "        img.show()\n",
    "\n",
    "    \n",
    "    # 将图片分割，放在一起\n",
    "    cutx = np.random.randint(int(w*min_offset_x), int(w*(1 - min_offset_x)))\n",
    "    cuty = np.random.randint(int(h*min_offset_y), int(h*(1 - min_offset_y)))\n",
    "\n",
    "    new_image = np.zeros([h,w,3])\n",
    "    new_image[:cuty, :cutx, :] = image_datas[0][:cuty, :cutx, :]\n",
    "    new_image[cuty:, :cutx, :] = image_datas[1][cuty:, :cutx, :]\n",
    "    new_image[cuty:, cutx:, :] = image_datas[2][cuty:, cutx:, :]\n",
    "    new_image[:cuty, cutx:, :] = image_datas[3][:cuty, cutx:, :]\n",
    "\n",
    "    # 对框进行进一步的处理\n",
    "    new_boxes = merge_bboxes(box_datas, cutx, cuty)\n",
    "\n",
    "    return new_image, new_boxes\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
